Assuming that libnag_dmc.a has been installed in a directory in the search path of the linker, such as /usr/lib, and that the NAG Data Mining Components include files have been moved to /usr/include, then you may link to the NAG Data Mining Components in the following manner:
cc -o driver.exe driver.c -lnag_dmc -lsocket -lnsl -lintl -lmwhere driver.c is your application program. If the Components are in a location other than /usr/lib, such as /opt/NAG/lib, and the include files are in a location other than /usr/include, such as /opt/NAG/include, then you may link to the NAG Data Mining Components in the following manner:
cc -o driver.exe -I/opt/NAG/include driver.c -L/opt/NAG/lib -R/opt/NAG/lib \
-lnag_dmc -lsocket -lnsl -lintl -lm
The use of the -L and -R options in the compilation command
can be avoided if the environment variable LD_LIBRARY_PATH is set as
follows:
setenv LD_LIBRARY_PATH /opt/NAG/lib(see the man page for ld(1) for more information about LD_LIBRARY_PATH).
| Example File | Additional File Needed |
|---|---|
| basic_logistic_exf.c | iris_sp.c |
| dt_exf.c | df_iris.c |
| hclust_exf.c | iris.c |
| kmeans_exf.c | iris.c |
| knnc_exf.c | df_iris.c |
| knnp_exf.c | df_iris.c |
| logistic_exf.c | iris_sp.c |
| pca_exf.c | iris.c |
| regr_exf.c | iris_sp.c |
Issue the compilation command
cc -o pca_exf.exe iris.c pca_exf.c -lnag_dmc -lsocket -lnsl -lintl -lm
This command will create an executable file called pca_exf.exe.
The exception to this is the ODBC example contained in file odbc_ex.c. This example requires that some ODBC software is installed on your system as well as the NAG Data Mining Components. To compile and link this example copy the files to your current directory as described above. If you have unixODBC installed in a directory on the linker's search path you can compile and link this example by issuing the command
cc -o odbc_ex.exe odbc_ex.c -lnag_dmc -lodbc -lsocket -lnsl -lintl -lm
The NAG Response Centres are available for general enquiries from all users and also for technical queries from sites with an annually licensed product or support service.
The Response Centres are open during office hours, but contact is possible by fax, email and phone (answering machine) at all times.
When contacting a Response Centre please quote your NAG site reference and NAG product code (in this case DRSOL10DA).
The NAG websites are an information service providing items of interest to users and prospective users of NAG products and services. The information is reviewed and updated regularly and includes implementation availability, descriptions of products, downloadable software, product documentation and technical reports. The NAG websites can be accessed at
or
http://www.nag.com/ (in North America)
or
http://www.nag-j.co.jp/ (in Japan)
NAG Ltd
Tel: +44 (0)1865 511245
Fax: +44 (0)1865 310139
NAG Ltd Response Centre
email: support@nag.co.uk
Tel: +44 (0)1865 311744
Fax: +44 (0)1865 310139
NAG Inc
Tel: +1 630 971 2337
Fax: +1 630 971 2706
NAG Inc Response Center
email: infodesk@nag.com
Tel: +1 630 971 2345
Fax: +1 630 971 2706
Nihon NAG KK
Tel: +81 (0)3 5542 6311
Fax: +81 (0)3 5542 6312
email: help@nag-j.co.jp
[NP3627/UN]